package com.sale.plugins;

import com.apache.api.vo.ParamsVo;
import com.apache.ius.plugin.CustomMethodPlugin;
import com.apache.match.manager.DealMatchingManager;

import java.util.Map;

/**
 * 委托下单校验规则
 */
public class SaleCheckOrderRulesPluginImpl implements CustomMethodPlugin {

    private DealMatchingManager dealMatchingManager;

    public Object beforeInvoke(Map<String, Object> param) {
        System.out.println("委托下单校验规则...无用");
        return null;
    }

    public Object doInvoke(Map<String, Object> param) {
        return null;
    }

    @SuppressWarnings({ "rawtypes", "unchecked" })
    public Object afterInvoke(Map<String, Object> param) {

        return null;
    }

    /**
     * 规则校验入口（专门给系统公式规则提供的）
     *
     * @param paramsVo
     */
    public void run(ParamsVo paramsVo) {
        beforeInvoke(paramsVo.getParams());
    }
}
